<template>
  <div>
    <el-dialog
      title="提示"
      width="30%"
      :visible.sync="visible"
      center>
      <p>{{msg}}</p>
    </el-dialog>
  </div>
</template>

<script>
  export default{
    data(){
      return{
        visible: false,
        msg:""
      }
    },
    methods:{
      dialog(msg,visible){
        this.msg = msg;
        this.visible = visible;
      }
    }
  }
</script>

<style scoped>
  p{
    text-align: center;
    padding: 0;
    margin: 0;
  }
</style>
